<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	template="template/template.xhtml">

	<ui:define name="nucleoBase">
		<h:form>
			<div id="nucleo">			
				<div id="homeTitulo">
					<h:messages errorClass="erro" infoClass="info"/>
					<br />
					<fieldset styleClass="form" style="padding-left: 40px;width: 90%">
						<br />
	
						<table cellspacing="0" style="width: 50%">
							<tr style="padding-top: 0px">
								<td width="15%"><h:outputLabel for="login" value="Login: " /></td>
								<td><h:inputText id="login" name="login"
								value="#{autenticacaoView.login}" size="25" maxlength="15" /></td>
							</tr>
							
							<tr>
								<td><h:outputLabel for="senha" value="Senha: " /></td>
								<td><h:inputSecret id="senha" name="senha"
								value="#{autenticacaoView.senha}" size="25" maxlength="15" /></td>
							</tr>
							
							<tr>
								<td colspan="2" rowspan="1"><h:commandLink value="Esqueceu senha?"
								action="#{autenticacaoView.gerarSenha}" style="font-size: 9px" /></td>
							</tr>
						</table>
						<h:commandButton value="  Login  "
								action="#{autenticacaoView.autenticacao}" />
						<br />	
					</fieldset>
				</div>
			</div>
			
			<script type="text/javascript">
				documento.getElementById("login").value = "";
				documento.getElementById("senha").value = "";
				documento.getElementById("login").focus();
			</script>
		</h:form>

	</ui:define>

</ui:composition>